﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PRO.ORM;
using System.Data;

namespace PRO.Entity
{
    [Entity(TableName = "Pro_Order")]
    public class OrderInfo:BaseEntity
    {
        private int _ID;
        [EntityAttribute(SqlDbType = SqlDbType.Int, Len = 4, PrimaryKey = true)]
        public int ID
        {
            get { return _ID; }
            set { _ID = value; }
        }
        private int _UserID;
        /// <summary>
        /// 用户id
        /// </summary>
        [EntityAttribute(SqlDbType = SqlDbType.Int, Len = 4)]
        public int UserID
        {
            get { return _UserID; }
            set { _UserID = value; }
        }
        private string _OrderID;
        /// <summary>
        /// 订单编号
        /// </summary>
        [EntityAttribute(SqlDbType = SqlDbType.NVarChar, Len = 20)]
        public string OrderID
        {
            get { return _OrderID; }
            set { _OrderID = value; }
        }
        private string _Title;
        /// <summary>
        /// 订单标题
        /// </summary>
        [EntityAttribute(SqlDbType = SqlDbType.NVarChar, Len = 200)]
        public string Title
        {
            get { return _Title; }
            set { _Title = value; }
        }
        private string _Des;
        /// <summary>
        /// 订单描述
        /// </summary>
        [EntityAttribute(SqlDbType = SqlDbType.NVarChar, Len = 500,NotNull=false)]
        public string Des
        {
            get { return _Des; }
            set { _Des = value; }
        }

        private string _Note;
        /// <summary>
        /// 用户订单备注
        /// </summary>
        [EntityAttribute(SqlDbType = SqlDbType.NVarChar, Len = 500, NotNull = false)]
        public string Note
        {
            get { return _Note; }
            set { _Note = value; }
        }

        private decimal _TotalPrice;
        /// <summary>
        /// 订单总金额
        /// </summary>
        [EntityAttribute(SqlDbType = SqlDbType.Decimal, Len = 18)]
        public decimal TotalPrice
        {
            get { return _TotalPrice; }
            set { _TotalPrice = value; }
        }

        private string _CardNumber;
        /// <summary>
        /// 礼品卡卡号
        /// </summary>
        [EntityAttribute(SqlDbType = SqlDbType.NVarChar, Len = 12)]
        public string CardNumber
        {
            get { return _CardNumber; }
            set { _CardNumber = value; }
        }
        private string _Consignee;
        /// <summary>
        /// 收货人
        /// </summary>
        [EntityAttribute(SqlDbType = SqlDbType.NVarChar, Len = 20)]
        public string Consignee
        {
            get { return _Consignee; }
            set { _Consignee = value; }
        }
        private string _Address;
        /// <summary>
        /// 收货地址
        /// </summary>
        [EntityAttribute(SqlDbType = SqlDbType.NVarChar, Len = 200)]
        public string Address
        {
            get { return _Address; }
            set { _Address = value; }
        }
        private string _Zip;
        /// <summary>
        /// 邮编
        /// </summary>
        [EntityAttribute(SqlDbType = SqlDbType.NVarChar, Len = 6)]
        public string Zip
        {
            get { return _Zip; }
            set { _Zip = value; }
        }
        private string _Moble;
        /// <summary>
        /// 手机
        /// </summary>
        [EntityAttribute(SqlDbType = SqlDbType.NVarChar, Len = 11, NotNull = false)]
        public string Moble
        {
            get { return _Moble; }
            set { _Moble = value; }
        }
        private string _Phone;
        /// <summary>
        /// 电话
        /// </summary>
        [EntityAttribute(SqlDbType = SqlDbType.NVarChar, Len = 30, NotNull = false)]
        public string Phone
        {
            get { return _Phone; }
            set { _Phone = value; }
        }
        private int _Status;
        /// <summary>
        /// 订单状态,-1：取消；0:未支付；1：成功；
        /// </summary>
        [EntityAttribute(SqlDbType = SqlDbType.Int, Len = 4, DefaultValue = 0)]
        public int Status
        {
            get { return _Status; }
            set { _Status = value; }
        }
        private DateTime _BuyTime;
        /// <summary>
        /// 购买时间
        /// </summary>
        [EntityAttribute(SqlDbType = SqlDbType.DateTime, Len = 8)]
        public DateTime BuyTime
        {
            get { return _BuyTime; }
            set { _BuyTime = value; }
        }
    }
}
